.class public Limoblife/yogamoment/lite/PlayControl;
.super Ljava/lang/Object;
.source "PlayControl.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Limoblife/yogamoment/lite/PlayControl$Item;
    }
.end annotation


# static fields
.field public static final PLAYMODE_DEFAULT_ORDER:I = -0x4

.field public static final PLAYMODE_RANDOM_ORDER:I = -0x5

.field public static final PLAYMODE_REPEAT_PLAYLIST:I = -0x3

.field public static final PLAYMODE_REPEAT_TRACK:I = -0x2

.field public static final PLAYMODE_SINGL:I = -0x1


# instance fields
.field private allItem:Ljava/util/Vector;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Vector",
            "<",
            "Limoblife/yogamoment/lite/PlayControl$Item;",
            ">;"
        }
    .end annotation
.end field

.field currentIndex:I

.field currentItem:Limoblife/yogamoment/lite/PlayControl$Item;

.field homeplay:Landroid/widget/CheckBox;

.field i:I

.field public isdealTelaphony:Z

.field mWakeLock:Landroid/os/PowerManager$WakeLock;

.field mainActivity:Limoblife/yogamoment/lite/MainActivity;

.field mediaPlayer:Landroid/media/MediaPlayer;

.field musicListLayout:Landroid/widget/LinearLayout;

.field private nopreferences:Ljava/util/Vector;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Vector",
            "<",
            "Limoblife/yogamoment/lite/PlayControl$Item;",
            ">;"
        }
    .end annotation
.end field

.field phoneStateListener:Landroid/telephony/PhoneStateListener;

.field public playModeIndex:I

.field private preferences:Ljava/util/Vector;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Vector",
            "<",
            "Limoblife/yogamoment/lite/PlayControl$Item;",
            ">;"
        }
    .end annotation
.end field

.field private prevCheckBox:Landroid/widget/CompoundButton;

.field random:Ljava/util/Random;

.field scrollView:Landroid/widget/ScrollView;

.field sppinerBox:Landroid/widget/CheckBox;

.field telephonyManager:Landroid/telephony/TelephonyManager;

.field titleTextView:Landroid/widget/TextView;


# direct methods
.method public constructor <init>(Limoblife/yogamoment/lite/MainActivity;)V
    .locals 2
    .parameter "mainActivity"

    .prologue
    const/4 v1, 0x0

    .line 63
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 61
    const/4 v0, -0x1

    iput v0, p0, Limoblife/yogamoment/lite/PlayControl;->playModeIndex:I

    .line 350
    new-instance v0, Ljava/util/Random;

    invoke-direct {v0}, Ljava/util/Random;-><init>()V

    iput-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->random:Ljava/util/Random;

    .line 366
    iput v1, p0, Limoblife/yogamoment/lite/PlayControl;->i:I

    .line 367
    iput v1, p0, Limoblife/yogamoment/lite/PlayControl;->currentIndex:I

    .line 929
    iput-boolean v1, p0, Limoblife/yogamoment/lite/PlayControl;->isdealTelaphony:Z

    .line 64
    iput-object p1, p0, Limoblife/yogamoment/lite/PlayControl;->mainActivity:Limoblife/yogamoment/lite/MainActivity;

    .line 66
    invoke-direct {p0}, Limoblife/yogamoment/lite/PlayControl;->initMediaplayer()V

    .line 68
    invoke-direct {p0}, Limoblife/yogamoment/lite/PlayControl;->initPreferences()V

    .line 70
    invoke-direct {p0}, Limoblife/yogamoment/lite/PlayControl;->initAllItem()V

    .line 72
    invoke-direct {p0}, Limoblife/yogamoment/lite/PlayControl;->initAllItemPreferences()V

    .line 74
    invoke-direct {p0}, Limoblife/yogamoment/lite/PlayControl;->initMusicListLayout()V

    .line 76
    invoke-direct {p0}, Limoblife/yogamoment/lite/PlayControl;->initMusicSppinerButton()V

    .line 78
    invoke-direct {p0}, Limoblife/yogamoment/lite/PlayControl;->initHomePlaycheckBox()V

    .line 80
    invoke-direct {p0}, Limoblife/yogamoment/lite/PlayControl;->lockScreen()V

    .line 82
    return-void
.end method

.method static synthetic access$0(Limoblife/yogamoment/lite/PlayControl;)V
    .locals 0
    .parameter

    .prologue
    .line 184
    invoke-direct {p0}, Limoblife/yogamoment/lite/PlayControl;->initRepeatList()V

    return-void
.end method

.method static synthetic access$1(Limoblife/yogamoment/lite/PlayControl;)V
    .locals 0
    .parameter

    .prologue
    .line 241
    invoke-direct {p0}, Limoblife/yogamoment/lite/PlayControl;->initDefault()V

    return-void
.end method

.method static synthetic access$10(Limoblife/yogamoment/lite/PlayControl;)V
    .locals 0
    .parameter

    .prologue
    .line 784
    invoke-direct {p0}, Limoblife/yogamoment/lite/PlayControl;->showMusicListWindows()V

    return-void
.end method

.method static synthetic access$2(Limoblife/yogamoment/lite/PlayControl;)V
    .locals 0
    .parameter

    .prologue
    .line 308
    invoke-direct {p0}, Limoblife/yogamoment/lite/PlayControl;->initRadom()V

    return-void
.end method

.method static synthetic access$3(Limoblife/yogamoment/lite/PlayControl;)Landroid/widget/CompoundButton;
    .locals 1
    .parameter

    .prologue
    .line 365
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->prevCheckBox:Landroid/widget/CompoundButton;

    return-object v0
.end method

.method static synthetic access$4(Limoblife/yogamoment/lite/PlayControl;Landroid/widget/CompoundButton;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 365
    iput-object p1, p0, Limoblife/yogamoment/lite/PlayControl;->prevCheckBox:Landroid/widget/CompoundButton;

    return-void
.end method

.method static synthetic access$5(Limoblife/yogamoment/lite/PlayControl;I)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 90
    invoke-direct {p0, p1}, Limoblife/yogamoment/lite/PlayControl;->setCurrentMediaPlayer(I)V

    return-void
.end method

.method static synthetic access$6(Limoblife/yogamoment/lite/PlayControl;)Ljava/util/Vector;
    .locals 1
    .parameter

    .prologue
    .line 732
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    return-object v0
.end method

.method static synthetic access$7(Limoblife/yogamoment/lite/PlayControl;)Ljava/util/Vector;
    .locals 1
    .parameter

    .prologue
    .line 734
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->nopreferences:Ljava/util/Vector;

    return-object v0
.end method

.method static synthetic access$8(Limoblife/yogamoment/lite/PlayControl;)Ljava/util/Vector;
    .locals 1
    .parameter

    .prologue
    .line 84
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->allItem:Ljava/util/Vector;

    return-object v0
.end method

.method static synthetic access$9(Limoblife/yogamoment/lite/PlayControl;)V
    .locals 0
    .parameter

    .prologue
    .line 1080
    invoke-direct {p0}, Limoblife/yogamoment/lite/PlayControl;->showNofi()V

    return-void
.end method

.method private initAllItem()V
    .locals 8

    .prologue
    const v7, 0x7f080033

    const/high16 v6, 0x7f07

    .line 373
    new-instance v3, Ljava/util/Vector;

    invoke-direct {v3}, Ljava/util/Vector;-><init>()V

    iput-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->allItem:Ljava/util/Vector;

    .line 375
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->mainActivity:Limoblife/yogamoment/lite/MainActivity;

    invoke-virtual {v3}, Limoblife/yogamoment/lite/MainActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    invoke-virtual {v3, v6}, Landroid/content/res/Resources;->getStringArray(I)[Ljava/lang/String;

    move-result-object v3

    .line 376
    array-length v2, v3

    .line 378
    .local v2, size:I
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->mainActivity:Limoblife/yogamoment/lite/MainActivity;

    invoke-static {v3}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    .line 380
    .local v0, inflater:Landroid/view/LayoutInflater;
    const/4 v3, 0x0

    iput v3, p0, Limoblife/yogamoment/lite/PlayControl;->i:I

    :goto_0
    iget v3, p0, Limoblife/yogamoment/lite/PlayControl;->i:I

    if-lt v3, v2, :cond_0

    .line 542
    return-void

    .line 382
    :cond_0
    new-instance v1, Limoblife/yogamoment/lite/PlayControl$Item;

    invoke-direct {v1, p0}, Limoblife/yogamoment/lite/PlayControl$Item;-><init>(Limoblife/yogamoment/lite/PlayControl;)V

    .line 384
    .local v1, item:Limoblife/yogamoment/lite/PlayControl$Item;
    const v3, 0x7f030006

    const/4 v4, 0x0

    .line 383
    invoke-virtual {v0, v3, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/RelativeLayout;

    iput-object v3, v1, Limoblife/yogamoment/lite/PlayControl$Item;->itemLayout:Landroid/widget/RelativeLayout;

    .line 385
    iget-object v3, v1, Limoblife/yogamoment/lite/PlayControl$Item;->itemLayout:Landroid/widget/RelativeLayout;

    .line 386
    invoke-virtual {v3, v7}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/CheckBox;

    .line 385
    iput-object v3, v1, Limoblife/yogamoment/lite/PlayControl$Item;->preferencescBox:Landroid/widget/CheckBox;

    .line 387
    iget-object v3, v1, Limoblife/yogamoment/lite/PlayControl$Item;->itemLayout:Landroid/widget/RelativeLayout;

    .line 388
    const v4, 0x7f080034

    invoke-virtual {v3, v4}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/CheckBox;

    .line 387
    iput-object v3, v1, Limoblife/yogamoment/lite/PlayControl$Item;->itemPlayCheckBox:Landroid/widget/CheckBox;

    .line 389
    iget-object v3, v1, Limoblife/yogamoment/lite/PlayControl$Item;->itemLayout:Landroid/widget/RelativeLayout;

    .line 390
    const v4, 0x7f080035

    invoke-virtual {v3, v4}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    .line 389
    iput-object v3, v1, Limoblife/yogamoment/lite/PlayControl$Item;->titleView:Landroid/widget/TextView;

    .line 391
    iget-object v3, v1, Limoblife/yogamoment/lite/PlayControl$Item;->titleView:Landroid/widget/TextView;

    iget-object v4, p0, Limoblife/yogamoment/lite/PlayControl;->mainActivity:Limoblife/yogamoment/lite/MainActivity;

    invoke-virtual {v4}, Limoblife/yogamoment/lite/MainActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    invoke-virtual {v4, v6}, Landroid/content/res/Resources;->getStringArray(I)[Ljava/lang/String;

    move-result-object v4

    .line 392
    iget v5, p0, Limoblife/yogamoment/lite/PlayControl;->i:I

    aget-object v4, v4, v5

    .line 391
    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 393
    const/16 v3, 0xf

    new-array v3, v3, [I

    fill-array-data v3, :array_0

    .line 396
    iget v4, p0, Limoblife/yogamoment/lite/PlayControl;->i:I

    aget v3, v3, v4

    .line 393
    iput v3, v1, Limoblife/yogamoment/lite/PlayControl$Item;->musicID:I

    .line 397
    iget-object v3, v1, Limoblife/yogamoment/lite/PlayControl$Item;->itemLayout:Landroid/widget/RelativeLayout;

    .line 398
    invoke-virtual {v3, v7}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/CheckBox;

    .line 397
    iput-object v3, v1, Limoblife/yogamoment/lite/PlayControl$Item;->preferencescBox:Landroid/widget/CheckBox;

    .line 400
    iget v3, p0, Limoblife/yogamoment/lite/PlayControl;->i:I

    const/4 v4, 0x7

    if-ge v3, v4, :cond_1

    .line 401
    iget-object v3, v1, Limoblife/yogamoment/lite/PlayControl$Item;->itemPlayCheckBox:Landroid/widget/CheckBox;

    .line 402
    new-instance v4, Limoblife/yogamoment/lite/PlayControl$5;

    invoke-direct {v4, p0, v1}, Limoblife/yogamoment/lite/PlayControl$5;-><init>(Limoblife/yogamoment/lite/PlayControl;Limoblife/yogamoment/lite/PlayControl$Item;)V

    invoke-virtual {v3, v4}, Landroid/widget/CheckBox;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V

    .line 459
    iget-object v3, v1, Limoblife/yogamoment/lite/PlayControl$Item;->preferencescBox:Landroid/widget/CheckBox;

    .line 460
    new-instance v4, Limoblife/yogamoment/lite/PlayControl$6;

    invoke-direct {v4, p0, v1}, Limoblife/yogamoment/lite/PlayControl$6;-><init>(Limoblife/yogamoment/lite/PlayControl;Limoblife/yogamoment/lite/PlayControl$Item;)V

    invoke-virtual {v3, v4}, Landroid/widget/CheckBox;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V

    .line 519
    :goto_1
    iget-boolean v3, v1, Limoblife/yogamoment/lite/PlayControl$Item;->isPreferences:Z

    if-eqz v3, :cond_2

    .line 521
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    invoke-virtual {v3, v1}, Ljava/util/Vector;->addElement(Ljava/lang/Object;)V

    .line 527
    :goto_2
    iget-object v3, v1, Limoblife/yogamoment/lite/PlayControl$Item;->itemLayout:Landroid/widget/RelativeLayout;

    new-instance v4, Limoblife/yogamoment/lite/PlayControl$9;

    invoke-direct {v4, p0, v1}, Limoblife/yogamoment/lite/PlayControl$9;-><init>(Limoblife/yogamoment/lite/PlayControl;Limoblife/yogamoment/lite/PlayControl$Item;)V

    invoke-virtual {v3, v4}, Landroid/widget/RelativeLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 539
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->allItem:Ljava/util/Vector;

    invoke-virtual {v3, v1}, Ljava/util/Vector;->addElement(Ljava/lang/Object;)V

    .line 380
    iget v3, p0, Limoblife/yogamoment/lite/PlayControl;->i:I

    add-int/lit8 v3, v3, 0x1

    iput v3, p0, Limoblife/yogamoment/lite/PlayControl;->i:I

    goto/16 :goto_0

    .line 489
    :cond_1
    iget-object v3, v1, Limoblife/yogamoment/lite/PlayControl$Item;->itemPlayCheckBox:Landroid/widget/CheckBox;

    .line 490
    new-instance v4, Limoblife/yogamoment/lite/PlayControl$7;

    invoke-direct {v4, p0, v1}, Limoblife/yogamoment/lite/PlayControl$7;-><init>(Limoblife/yogamoment/lite/PlayControl;Limoblife/yogamoment/lite/PlayControl$Item;)V

    invoke-virtual {v3, v4}, Landroid/widget/CheckBox;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V

    .line 503
    iget-object v3, v1, Limoblife/yogamoment/lite/PlayControl$Item;->preferencescBox:Landroid/widget/CheckBox;

    .line 504
    new-instance v4, Limoblife/yogamoment/lite/PlayControl$8;

    invoke-direct {v4, p0, v1}, Limoblife/yogamoment/lite/PlayControl$8;-><init>(Limoblife/yogamoment/lite/PlayControl;Limoblife/yogamoment/lite/PlayControl$Item;)V

    invoke-virtual {v3, v4}, Landroid/widget/CheckBox;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V

    goto :goto_1

    .line 524
    :cond_2
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->nopreferences:Ljava/util/Vector;

    invoke-virtual {v3, v1}, Ljava/util/Vector;->addElement(Ljava/lang/Object;)V

    goto :goto_2

    .line 393
    :array_0
    .array-data 0x4
        0x29t 0x0t 0x2t 0x7ft
        0x2at 0x0t 0x2t 0x7ft
        0x2bt 0x0t 0x2t 0x7ft
        0x2ct 0x0t 0x2t 0x7ft
        0x2dt 0x0t 0x2t 0x7ft
        0x2et 0x0t 0x2t 0x7ft
        0x2ft 0x0t 0x2t 0x7ft
        0xfft 0xfft 0xfft 0xfft
        0xfft 0xfft 0xfft 0xfft
        0xfft 0xfft 0xfft 0xfft
        0xfft 0xfft 0xfft 0xfft
        0xfft 0xfft 0xfft 0xfft
        0xfft 0xfft 0xfft 0xfft
        0xfft 0xfft 0xfft 0xfft
        0xfft 0xfft 0xfft 0xfft
    .end array-data
.end method

.method private initAllItemPreferences()V
    .locals 7

    .prologue
    const/4 v6, 0x0

    .line 915
    iget-object v2, p0, Limoblife/yogamoment/lite/PlayControl;->mainActivity:Limoblife/yogamoment/lite/MainActivity;

    invoke-virtual {v2, v6}, Limoblife/yogamoment/lite/MainActivity;->getPreferences(I)Landroid/content/SharedPreferences;

    move-result-object v1

    .line 916
    .local v1, preferences:Landroid/content/SharedPreferences;
    iget-object v2, p0, Limoblife/yogamoment/lite/PlayControl;->allItem:Ljava/util/Vector;

    invoke-virtual {v2}, Ljava/util/Vector;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-nez v3, :cond_0

    .line 925
    invoke-direct {p0}, Limoblife/yogamoment/lite/PlayControl;->refreshPreferences()V

    .line 927
    return-void

    .line 916
    :cond_0
    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Limoblife/yogamoment/lite/PlayControl$Item;

    .line 918
    .local v0, iterable_element:Limoblife/yogamoment/lite/PlayControl$Item;
    iget-object v3, v0, Limoblife/yogamoment/lite/PlayControl$Item;->titleView:Landroid/widget/TextView;

    invoke-virtual {v3}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v3

    invoke-interface {v3}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v3

    .line 917
    invoke-interface {v1, v3, v6}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v3

    iput-boolean v3, v0, Limoblife/yogamoment/lite/PlayControl$Item;->isPreferences:Z

    .line 919
    const-string v3, "d"

    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "isPreferences="

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-boolean v5, v0, Limoblife/yogamoment/lite/PlayControl$Item;->isPreferences:Z

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 921
    iget-object v3, v0, Limoblife/yogamoment/lite/PlayControl$Item;->preferencescBox:Landroid/widget/CheckBox;

    .line 922
    iget-boolean v4, v0, Limoblife/yogamoment/lite/PlayControl$Item;->isPreferences:Z

    invoke-virtual {v3, v4}, Landroid/widget/CheckBox;->setChecked(Z)V

    goto :goto_0
.end method

.method private initDefault()V
    .locals 7

    .prologue
    const/4 v6, 0x1

    const/4 v5, 0x0

    .line 242
    const-string v3, "d"

    const-string v4, "\u987a\u5e8f\u64ad\u653e"

    invoke-static {v3, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 244
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->allItem:Ljava/util/Vector;

    iget v4, p0, Limoblife/yogamoment/lite/PlayControl;->currentIndex:I

    invoke-virtual {v3, v4}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Limoblife/yogamoment/lite/PlayControl$Item;

    .line 246
    .local v0, item:Limoblife/yogamoment/lite/PlayControl$Item;
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    invoke-virtual {v3}, Ljava/util/Vector;->size()I

    move-result v3

    if-lez v3, :cond_3

    .line 248
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    invoke-virtual {v3, v0}, Ljava/util/Vector;->contains(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_2

    .line 250
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    invoke-virtual {v3, v0}, Ljava/util/Vector;->indexOf(Ljava/lang/Object;)I

    move-result v2

    .line 252
    .local v2, preferencesIndex:I
    add-int/lit8 v2, v2, 0x1

    .line 254
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    invoke-virtual {v3}, Ljava/util/Vector;->size()I

    move-result v3

    if-lt v2, v3, :cond_0

    .line 256
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->homeplay:Landroid/widget/CheckBox;

    invoke-virtual {v3, v5}, Landroid/widget/CheckBox;->setChecked(Z)V

    .line 290
    .end local v2           #preferencesIndex:I
    :goto_0
    return-void

    .line 260
    .restart local v2       #preferencesIndex:I
    :cond_0
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    invoke-virtual {v3, v2}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Limoblife/yogamoment/lite/PlayControl$Item;

    iget-object v3, v3, Limoblife/yogamoment/lite/PlayControl$Item;->itemPlayCheckBox:Landroid/widget/CheckBox;

    .line 261
    invoke-virtual {v3}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v3

    if-eqz v3, :cond_1

    .line 262
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->mainActivity:Limoblife/yogamoment/lite/MainActivity;

    invoke-virtual {v3}, Limoblife/yogamoment/lite/MainActivity;->updateMusicPross()V

    .line 263
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->mediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v3}, Landroid/media/MediaPlayer;->start()V

    .line 289
    .end local v2           #preferencesIndex:I
    :goto_1
    invoke-direct {p0}, Limoblife/yogamoment/lite/PlayControl;->setDefaultComletionListener()V

    goto :goto_0

    .line 266
    .restart local v2       #preferencesIndex:I
    :cond_1
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    invoke-virtual {v3, v2}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Limoblife/yogamoment/lite/PlayControl$Item;

    iget-object v3, v3, Limoblife/yogamoment/lite/PlayControl$Item;->itemPlayCheckBox:Landroid/widget/CheckBox;

    .line 267
    invoke-virtual {v3, v6}, Landroid/widget/CheckBox;->setChecked(Z)V

    goto :goto_1

    .line 271
    .end local v2           #preferencesIndex:I
    :cond_2
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    invoke-virtual {v3, v5}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Limoblife/yogamoment/lite/PlayControl$Item;

    iget-object v3, v3, Limoblife/yogamoment/lite/PlayControl$Item;->itemPlayCheckBox:Landroid/widget/CheckBox;

    invoke-virtual {v3, v6}, Landroid/widget/CheckBox;->setChecked(Z)V

    goto :goto_1

    .line 276
    :cond_3
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->nopreferences:Ljava/util/Vector;

    invoke-virtual {v3, v0}, Ljava/util/Vector;->indexOf(Ljava/lang/Object;)I

    move-result v1

    .line 278
    .local v1, nopreferencesIndex:I
    add-int/lit8 v1, v1, 0x1

    .line 280
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->nopreferences:Ljava/util/Vector;

    invoke-virtual {v3}, Ljava/util/Vector;->size()I

    move-result v3

    const/16 v4, 0x8

    sub-int/2addr v3, v4

    if-lt v1, v3, :cond_4

    .line 281
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->homeplay:Landroid/widget/CheckBox;

    invoke-virtual {v3, v5}, Landroid/widget/CheckBox;->setChecked(Z)V

    goto :goto_0

    .line 285
    :cond_4
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->nopreferences:Ljava/util/Vector;

    invoke-virtual {v3, v1}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Limoblife/yogamoment/lite/PlayControl$Item;

    iget-object v3, v3, Limoblife/yogamoment/lite/PlayControl$Item;->itemPlayCheckBox:Landroid/widget/CheckBox;

    .line 286
    invoke-virtual {v3, v6}, Landroid/widget/CheckBox;->setChecked(Z)V

    goto :goto_1
.end method

.method private initHomePlaycheckBox()V
    .locals 2

    .prologue
    .line 703
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->mainActivity:Limoblife/yogamoment/lite/MainActivity;

    const v1, 0x7f080005

    invoke-virtual {v0, v1}, Limoblife/yogamoment/lite/MainActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/CheckBox;

    iput-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->homeplay:Landroid/widget/CheckBox;

    .line 704
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->homeplay:Landroid/widget/CheckBox;

    new-instance v1, Limoblife/yogamoment/lite/PlayControl$10;

    invoke-direct {v1, p0}, Limoblife/yogamoment/lite/PlayControl$10;-><init>(Limoblife/yogamoment/lite/PlayControl;)V

    invoke-virtual {v0, v1}, Landroid/widget/CheckBox;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V

    .line 730
    return-void
.end method

.method private initMediaplayer()V
    .locals 1

    .prologue
    .line 87
    new-instance v0, Landroid/media/MediaPlayer;

    invoke-direct {v0}, Landroid/media/MediaPlayer;-><init>()V

    iput-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->mediaPlayer:Landroid/media/MediaPlayer;

    .line 88
    return-void
.end method

.method private initMusicListLayout()V
    .locals 2

    .prologue
    .line 776
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->mainActivity:Limoblife/yogamoment/lite/MainActivity;

    const v1, 0x7f080020

    invoke-virtual {v0, v1}, Limoblife/yogamoment/lite/MainActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ScrollView;

    iput-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->scrollView:Landroid/widget/ScrollView;

    .line 777
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->mainActivity:Limoblife/yogamoment/lite/MainActivity;

    .line 778
    const v1, 0x7f080021

    invoke-virtual {v0, v1}, Limoblife/yogamoment/lite/MainActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    .line 777
    iput-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->musicListLayout:Landroid/widget/LinearLayout;

    .line 779
    return-void
.end method

.method private initMusicSppinerButton()V
    .locals 2

    .prologue
    .line 833
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->mainActivity:Limoblife/yogamoment/lite/MainActivity;

    const v1, 0x7f080016

    invoke-virtual {v0, v1}, Limoblife/yogamoment/lite/MainActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/CheckBox;

    iput-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->sppinerBox:Landroid/widget/CheckBox;

    .line 835
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->sppinerBox:Landroid/widget/CheckBox;

    new-instance v1, Limoblife/yogamoment/lite/PlayControl$13;

    invoke-direct {v1, p0}, Limoblife/yogamoment/lite/PlayControl$13;-><init>(Limoblife/yogamoment/lite/PlayControl;)V

    invoke-virtual {v0, v1}, Landroid/widget/CheckBox;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V

    .line 850
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->mainActivity:Limoblife/yogamoment/lite/MainActivity;

    .line 851
    const v1, 0x7f080015

    invoke-virtual {v0, v1}, Limoblife/yogamoment/lite/MainActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 850
    iput-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->titleTextView:Landroid/widget/TextView;

    .line 852
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->titleTextView:Landroid/widget/TextView;

    new-instance v1, Limoblife/yogamoment/lite/PlayControl$14;

    invoke-direct {v1, p0}, Limoblife/yogamoment/lite/PlayControl$14;-><init>(Limoblife/yogamoment/lite/PlayControl;)V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 864
    return-void
.end method

.method private initPreferences()V
    .locals 1

    .prologue
    .line 737
    new-instance v0, Ljava/util/Vector;

    invoke-direct {v0}, Ljava/util/Vector;-><init>()V

    iput-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    .line 738
    new-instance v0, Ljava/util/Vector;

    invoke-direct {v0}, Ljava/util/Vector;-><init>()V

    iput-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->nopreferences:Ljava/util/Vector;

    .line 740
    return-void
.end method

.method private initRadom()V
    .locals 6

    .prologue
    const/4 v5, 0x1

    .line 310
    const-string v3, "d"

    const-string v4, "\u968f\u673a\u64ad\u653e"

    invoke-static {v3, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 312
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->allItem:Ljava/util/Vector;

    iget v4, p0, Limoblife/yogamoment/lite/PlayControl;->currentIndex:I

    invoke-virtual {v3, v4}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Limoblife/yogamoment/lite/PlayControl$Item;

    .line 314
    .local v0, item:Limoblife/yogamoment/lite/PlayControl$Item;
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    invoke-virtual {v3}, Ljava/util/Vector;->size()I

    move-result v3

    if-lez v3, :cond_2

    .line 316
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    invoke-virtual {v3, v0}, Ljava/util/Vector;->contains(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_1

    .line 317
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    invoke-virtual {v3, v0}, Ljava/util/Vector;->indexOf(Ljava/lang/Object;)I

    move-result v2

    .line 318
    .local v2, preferencesIndex:I
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->random:Ljava/util/Random;

    invoke-virtual {v3}, Ljava/util/Random;->nextInt()I

    move-result v3

    ushr-int/lit8 v2, v3, 0x1

    .line 319
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    invoke-virtual {v3}, Ljava/util/Vector;->size()I

    move-result v3

    rem-int/2addr v2, v3

    .line 321
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    invoke-virtual {v3, v2}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Limoblife/yogamoment/lite/PlayControl$Item;

    iget-object v3, v3, Limoblife/yogamoment/lite/PlayControl$Item;->itemPlayCheckBox:Landroid/widget/CheckBox;

    .line 322
    invoke-virtual {v3}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v3

    if-eqz v3, :cond_0

    .line 323
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->mainActivity:Limoblife/yogamoment/lite/MainActivity;

    invoke-virtual {v3}, Limoblife/yogamoment/lite/MainActivity;->updateMusicPross()V

    .line 324
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->mediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v3}, Landroid/media/MediaPlayer;->start()V

    .line 347
    .end local v2           #preferencesIndex:I
    :goto_0
    invoke-direct {p0}, Limoblife/yogamoment/lite/PlayControl;->setRadomComletionListener()V

    .line 348
    return-void

    .line 327
    .restart local v2       #preferencesIndex:I
    :cond_0
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    invoke-virtual {v3, v2}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Limoblife/yogamoment/lite/PlayControl$Item;

    iget-object v3, v3, Limoblife/yogamoment/lite/PlayControl$Item;->itemPlayCheckBox:Landroid/widget/CheckBox;

    .line 328
    invoke-virtual {v3, v5}, Landroid/widget/CheckBox;->setChecked(Z)V

    goto :goto_0

    .line 332
    .end local v2           #preferencesIndex:I
    :cond_1
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    const/4 v4, 0x0

    invoke-virtual {v3, v4}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Limoblife/yogamoment/lite/PlayControl$Item;

    iget-object v3, v3, Limoblife/yogamoment/lite/PlayControl$Item;->itemPlayCheckBox:Landroid/widget/CheckBox;

    invoke-virtual {v3, v5}, Landroid/widget/CheckBox;->setChecked(Z)V

    goto :goto_0

    .line 337
    :cond_2
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->nopreferences:Ljava/util/Vector;

    invoke-virtual {v3, v0}, Ljava/util/Vector;->indexOf(Ljava/lang/Object;)I

    move-result v1

    .line 339
    .local v1, nopreferencesIndex:I
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->random:Ljava/util/Random;

    invoke-virtual {v3}, Ljava/util/Random;->nextInt()I

    move-result v3

    ushr-int/lit8 v1, v3, 0x1

    .line 341
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->nopreferences:Ljava/util/Vector;

    invoke-virtual {v3}, Ljava/util/Vector;->size()I

    move-result v3

    const/16 v4, 0x8

    sub-int/2addr v3, v4

    rem-int/2addr v1, v3

    .line 343
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->nopreferences:Ljava/util/Vector;

    invoke-virtual {v3, v1}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Limoblife/yogamoment/lite/PlayControl$Item;

    iget-object v3, v3, Limoblife/yogamoment/lite/PlayControl$Item;->itemPlayCheckBox:Landroid/widget/CheckBox;

    .line 344
    invoke-virtual {v3, v5}, Landroid/widget/CheckBox;->setChecked(Z)V

    goto :goto_0
.end method

.method private initRepeatList()V
    .locals 6

    .prologue
    const/4 v5, 0x1

    .line 186
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->allItem:Ljava/util/Vector;

    iget v4, p0, Limoblife/yogamoment/lite/PlayControl;->currentIndex:I

    invoke-virtual {v3, v4}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Limoblife/yogamoment/lite/PlayControl$Item;

    .line 188
    .local v0, item:Limoblife/yogamoment/lite/PlayControl$Item;
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    invoke-virtual {v3}, Ljava/util/Vector;->size()I

    move-result v3

    if-lez v3, :cond_2

    .line 190
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    invoke-virtual {v3, v0}, Ljava/util/Vector;->contains(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_1

    .line 191
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    invoke-virtual {v3, v0}, Ljava/util/Vector;->indexOf(Ljava/lang/Object;)I

    move-result v2

    .line 192
    .local v2, preferencesIndex:I
    add-int/lit8 v2, v2, 0x1

    .line 193
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    invoke-virtual {v3}, Ljava/util/Vector;->size()I

    move-result v3

    rem-int/2addr v2, v3

    .line 195
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    invoke-virtual {v3, v2}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Limoblife/yogamoment/lite/PlayControl$Item;

    iget-object v3, v3, Limoblife/yogamoment/lite/PlayControl$Item;->itemPlayCheckBox:Landroid/widget/CheckBox;

    .line 196
    invoke-virtual {v3}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v3

    if-eqz v3, :cond_0

    .line 197
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->mainActivity:Limoblife/yogamoment/lite/MainActivity;

    invoke-virtual {v3}, Limoblife/yogamoment/lite/MainActivity;->updateMusicPross()V

    .line 198
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->mediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v3}, Landroid/media/MediaPlayer;->start()V

    .line 221
    .end local v2           #preferencesIndex:I
    :goto_0
    invoke-direct {p0}, Limoblife/yogamoment/lite/PlayControl;->setRepeatListPlayBack()V

    .line 222
    return-void

    .line 201
    .restart local v2       #preferencesIndex:I
    :cond_0
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    invoke-virtual {v3, v2}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Limoblife/yogamoment/lite/PlayControl$Item;

    iget-object v3, v3, Limoblife/yogamoment/lite/PlayControl$Item;->itemPlayCheckBox:Landroid/widget/CheckBox;

    .line 202
    invoke-virtual {v3, v5}, Landroid/widget/CheckBox;->setChecked(Z)V

    goto :goto_0

    .line 206
    .end local v2           #preferencesIndex:I
    :cond_1
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    const/4 v4, 0x0

    invoke-virtual {v3, v4}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Limoblife/yogamoment/lite/PlayControl$Item;

    iget-object v3, v3, Limoblife/yogamoment/lite/PlayControl$Item;->itemPlayCheckBox:Landroid/widget/CheckBox;

    invoke-virtual {v3, v5}, Landroid/widget/CheckBox;->setChecked(Z)V

    goto :goto_0

    .line 211
    :cond_2
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->nopreferences:Ljava/util/Vector;

    invoke-virtual {v3, v0}, Ljava/util/Vector;->indexOf(Ljava/lang/Object;)I

    move-result v1

    .line 213
    .local v1, nopreferencesIndex:I
    add-int/lit8 v1, v1, 0x1

    .line 215
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->nopreferences:Ljava/util/Vector;

    invoke-virtual {v3}, Ljava/util/Vector;->size()I

    move-result v3

    const/16 v4, 0x8

    sub-int/2addr v3, v4

    rem-int/2addr v1, v3

    .line 217
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->nopreferences:Ljava/util/Vector;

    invoke-virtual {v3, v1}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Limoblife/yogamoment/lite/PlayControl$Item;

    iget-object v3, v3, Limoblife/yogamoment/lite/PlayControl$Item;->itemPlayCheckBox:Landroid/widget/CheckBox;

    .line 218
    invoke-virtual {v3, v5}, Landroid/widget/CheckBox;->setChecked(Z)V

    goto :goto_0
.end method

.method private lockScreen()V
    .locals 3

    .prologue
    const-string v1, "XYTEST"

    .line 967
    :try_start_0
    iget-object v1, p0, Limoblife/yogamoment/lite/PlayControl;->mainActivity:Limoblife/yogamoment/lite/MainActivity;

    .line 968
    const-string v2, "power"

    invoke-virtual {v1, v2}, Limoblife/yogamoment/lite/MainActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    .line 967
    check-cast v0, Landroid/os/PowerManager;

    .line 970
    .local v0, pm:Landroid/os/PowerManager;
    const/4 v1, 0x1

    const-string v2, "XYTEST"

    invoke-virtual {v0, v1, v2}, Landroid/os/PowerManager;->newWakeLock(ILjava/lang/String;)Landroid/os/PowerManager$WakeLock;

    move-result-object v1

    .line 969
    iput-object v1, p0, Limoblife/yogamoment/lite/PlayControl;->mWakeLock:Landroid/os/PowerManager$WakeLock;

    .line 972
    const/4 v1, 0x1

    const-string v2, "XYTEST"

    invoke-virtual {v0, v1, v2}, Landroid/os/PowerManager;->newWakeLock(ILjava/lang/String;)Landroid/os/PowerManager$WakeLock;

    move-result-object v1

    .line 971
    iput-object v1, p0, Limoblife/yogamoment/lite/PlayControl;->mWakeLock:Landroid/os/PowerManager$WakeLock;

    .line 973
    iget-object v1, p0, Limoblife/yogamoment/lite/PlayControl;->mWakeLock:Landroid/os/PowerManager$WakeLock;

    invoke-virtual {v1}, Landroid/os/PowerManager$WakeLock;->acquire()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 978
    .end local v0           #pm:Landroid/os/PowerManager;
    :goto_0
    return-void

    .line 974
    :catch_0
    move-exception v1

    goto :goto_0
.end method

.method private refreshMusicListView()V
    .locals 6

    .prologue
    const/16 v5, 0x32

    const/4 v4, -0x1

    .line 761
    iget-object v1, p0, Limoblife/yogamoment/lite/PlayControl;->musicListLayout:Landroid/widget/LinearLayout;

    invoke-virtual {v1}, Landroid/widget/LinearLayout;->removeAllViews()V

    .line 763
    iget-object v1, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    invoke-virtual {v1}, Ljava/util/Vector;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-nez v2, :cond_0

    .line 768
    iget-object v1, p0, Limoblife/yogamoment/lite/PlayControl;->nopreferences:Ljava/util/Vector;

    invoke-virtual {v1}, Ljava/util/Vector;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_1
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-nez v2, :cond_1

    .line 773
    return-void

    .line 763
    :cond_0
    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Limoblife/yogamoment/lite/PlayControl$Item;

    .line 764
    .local v0, currentItem:Limoblife/yogamoment/lite/PlayControl$Item;
    iget-object v2, p0, Limoblife/yogamoment/lite/PlayControl;->musicListLayout:Landroid/widget/LinearLayout;

    iget-object v3, v0, Limoblife/yogamoment/lite/PlayControl$Item;->itemLayout:Landroid/widget/RelativeLayout;

    invoke-virtual {v2, v3, v4, v5}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;II)V

    goto :goto_0

    .line 768
    .end local v0           #currentItem:Limoblife/yogamoment/lite/PlayControl$Item;
    :cond_1
    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Limoblife/yogamoment/lite/PlayControl$Item;

    .line 769
    .restart local v0       #currentItem:Limoblife/yogamoment/lite/PlayControl$Item;
    iget-object v2, p0, Limoblife/yogamoment/lite/PlayControl;->musicListLayout:Landroid/widget/LinearLayout;

    iget-object v3, v0, Limoblife/yogamoment/lite/PlayControl$Item;->itemLayout:Landroid/widget/RelativeLayout;

    invoke-virtual {v2, v3, v4, v5}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;II)V

    goto :goto_1
.end method

.method private refreshPreferences()V
    .locals 3

    .prologue
    .line 744
    iget-object v1, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    invoke-virtual {v1}, Ljava/util/Vector;->removeAllElements()V

    .line 746
    iget-object v1, p0, Limoblife/yogamoment/lite/PlayControl;->nopreferences:Ljava/util/Vector;

    invoke-virtual {v1}, Ljava/util/Vector;->removeAllElements()V

    .line 748
    iget-object v1, p0, Limoblife/yogamoment/lite/PlayControl;->allItem:Ljava/util/Vector;

    invoke-virtual {v1}, Ljava/util/Vector;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-nez v2, :cond_0

    .line 757
    return-void

    .line 748
    :cond_0
    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Limoblife/yogamoment/lite/PlayControl$Item;

    .line 750
    .local v0, iterable_element:Limoblife/yogamoment/lite/PlayControl$Item;
    iget-boolean v2, v0, Limoblife/yogamoment/lite/PlayControl$Item;->isPreferences:Z

    if-eqz v2, :cond_1

    .line 751
    iget-object v2, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    invoke-virtual {v2, v0}, Ljava/util/Vector;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 753
    :cond_1
    iget-object v2, p0, Limoblife/yogamoment/lite/PlayControl;->nopreferences:Ljava/util/Vector;

    invoke-virtual {v2, v0}, Ljava/util/Vector;->add(Ljava/lang/Object;)Z

    goto :goto_0
.end method

.method private savePreferences()V
    .locals 6

    .prologue
    .line 900
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->mainActivity:Limoblife/yogamoment/lite/MainActivity;

    const/4 v4, 0x0

    invoke-virtual {v3, v4}, Limoblife/yogamoment/lite/MainActivity;->getPreferences(I)Landroid/content/SharedPreferences;

    move-result-object v2

    .line 902
    .local v2, preferences:Landroid/content/SharedPreferences;
    invoke-interface {v2}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    .line 904
    .local v0, editor:Landroid/content/SharedPreferences$Editor;
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->allItem:Ljava/util/Vector;

    invoke-virtual {v3}, Ljava/util/Vector;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :goto_0
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-nez v4, :cond_0

    .line 910
    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 911
    return-void

    .line 904
    :cond_0
    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Limoblife/yogamoment/lite/PlayControl$Item;

    .line 906
    .local v1, iterable_element:Limoblife/yogamoment/lite/PlayControl$Item;
    iget-object v4, v1, Limoblife/yogamoment/lite/PlayControl$Item;->titleView:Landroid/widget/TextView;

    invoke-virtual {v4}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v4

    invoke-interface {v4}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v4

    .line 907
    iget-boolean v5, v1, Limoblife/yogamoment/lite/PlayControl$Item;->isPreferences:Z

    .line 906
    invoke-interface {v0, v4, v5}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    goto :goto_0
.end method

.method private setCurrentMediaPlayer(I)V
    .locals 8
    .parameter "currentId"

    .prologue
    .line 92
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->mainActivity:Limoblife/yogamoment/lite/MainActivity;

    invoke-virtual {v0}, Limoblife/yogamoment/lite/MainActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/content/res/Resources;->openRawResourceFd(I)Landroid/content/res/AssetFileDescriptor;

    move-result-object v7

    .line 94
    .local v7, fd:Landroid/content/res/AssetFileDescriptor;
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->mediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->reset()V

    .line 96
    :try_start_0
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->mediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v7}, Landroid/content/res/AssetFileDescriptor;->getFileDescriptor()Ljava/io/FileDescriptor;

    move-result-object v1

    .line 97
    invoke-virtual {v7}, Landroid/content/res/AssetFileDescriptor;->getStartOffset()J

    move-result-wide v2

    invoke-virtual {v7}, Landroid/content/res/AssetFileDescriptor;->getLength()J

    move-result-wide v4

    .line 96
    invoke-virtual/range {v0 .. v5}, Landroid/media/MediaPlayer;->setDataSource(Ljava/io/FileDescriptor;JJ)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0
    .catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_0
    .catch Ljava/lang/IllegalStateException; {:try_start_0 .. :try_end_0} :catch_2
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_4

    .line 108
    :try_start_1
    invoke-virtual {v7}, Landroid/content/res/AssetFileDescriptor;->close()V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_7

    .line 115
    :goto_0
    :try_start_2
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->mediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->prepare()V
    :try_end_2
    .catch Ljava/lang/IllegalStateException; {:try_start_2 .. :try_end_2} :catch_8
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_9

    .line 122
    :goto_1
    invoke-direct {p0}, Limoblife/yogamoment/lite/PlayControl;->setMusicMode()V

    .line 123
    return-void

    .line 98
    :catch_0
    move-exception v0

    move-object v6, v0

    .line 99
    .local v6, e:Ljava/lang/IllegalArgumentException;
    :try_start_3
    invoke-virtual {v6}, Ljava/lang/IllegalArgumentException;->printStackTrace()V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    .line 108
    :try_start_4
    invoke-virtual {v7}, Landroid/content/res/AssetFileDescriptor;->close()V
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_1

    goto :goto_0

    .line 109
    :catch_1
    move-exception v6

    .line 111
    .local v6, e:Ljava/lang/Exception;
    invoke-virtual {v6}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_0

    .line 100
    .end local v6           #e:Ljava/lang/Exception;
    :catch_2
    move-exception v0

    move-object v6, v0

    .line 102
    .local v6, e:Ljava/lang/IllegalStateException;
    :try_start_5
    invoke-virtual {v6}, Ljava/lang/IllegalStateException;->printStackTrace()V
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    .line 108
    :try_start_6
    invoke-virtual {v7}, Landroid/content/res/AssetFileDescriptor;->close()V
    :try_end_6
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_3

    goto :goto_0

    .line 109
    :catch_3
    move-exception v6

    .line 111
    .local v6, e:Ljava/lang/Exception;
    invoke-virtual {v6}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_0

    .line 103
    .end local v6           #e:Ljava/lang/Exception;
    :catch_4
    move-exception v0

    move-object v6, v0

    .line 105
    .local v6, e:Ljava/io/IOException;
    :try_start_7
    invoke-virtual {v6}, Ljava/io/IOException;->printStackTrace()V
    :try_end_7
    .catchall {:try_start_7 .. :try_end_7} :catchall_0

    .line 108
    :try_start_8
    invoke-virtual {v7}, Landroid/content/res/AssetFileDescriptor;->close()V
    :try_end_8
    .catch Ljava/lang/Exception; {:try_start_8 .. :try_end_8} :catch_5

    goto :goto_0

    .line 109
    :catch_5
    move-exception v6

    .line 111
    .local v6, e:Ljava/lang/Exception;
    invoke-virtual {v6}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_0

    .line 106
    .end local v6           #e:Ljava/lang/Exception;
    :catchall_0
    move-exception v0

    .line 108
    :try_start_9
    invoke-virtual {v7}, Landroid/content/res/AssetFileDescriptor;->close()V
    :try_end_9
    .catch Ljava/lang/Exception; {:try_start_9 .. :try_end_9} :catch_6

    .line 113
    :goto_2
    throw v0

    .line 109
    :catch_6
    move-exception v6

    .line 111
    .restart local v6       #e:Ljava/lang/Exception;
    invoke-virtual {v6}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_2

    .line 109
    .end local v6           #e:Ljava/lang/Exception;
    :catch_7
    move-exception v6

    .line 111
    .restart local v6       #e:Ljava/lang/Exception;
    invoke-virtual {v6}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_0

    .line 116
    .end local v6           #e:Ljava/lang/Exception;
    :catch_8
    move-exception v0

    move-object v6, v0

    .line 118
    .local v6, e:Ljava/lang/IllegalStateException;
    invoke-virtual {v6}, Ljava/lang/IllegalStateException;->printStackTrace()V

    goto :goto_1

    .line 119
    .end local v6           #e:Ljava/lang/IllegalStateException;
    :catch_9
    move-exception v0

    move-object v6, v0

    .line 120
    .local v6, e:Ljava/io/IOException;
    invoke-virtual {v6}, Ljava/io/IOException;->printStackTrace()V

    goto :goto_1
.end method

.method private setDefaultComletionListener()V
    .locals 2

    .prologue
    .line 297
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->mediaPlayer:Landroid/media/MediaPlayer;

    new-instance v1, Limoblife/yogamoment/lite/PlayControl$3;

    invoke-direct {v1, p0}, Limoblife/yogamoment/lite/PlayControl$3;-><init>(Limoblife/yogamoment/lite/PlayControl;)V

    invoke-virtual {v0, v1}, Landroid/media/MediaPlayer;->setOnCompletionListener(Landroid/media/MediaPlayer$OnCompletionListener;)V

    .line 303
    return-void
.end method

.method private setMusicMode()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 139
    iget v0, p0, Limoblife/yogamoment/lite/PlayControl;->playModeIndex:I

    packed-switch v0, :pswitch_data_0

    .line 178
    :goto_0
    return-void

    .line 143
    :pswitch_0
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->mediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v0, v1}, Landroid/media/MediaPlayer;->setLooping(Z)V

    .line 144
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->mediaPlayer:Landroid/media/MediaPlayer;

    new-instance v1, Limoblife/yogamoment/lite/PlayControl$1;

    invoke-direct {v1, p0}, Limoblife/yogamoment/lite/PlayControl$1;-><init>(Limoblife/yogamoment/lite/PlayControl;)V

    invoke-virtual {v0, v1}, Landroid/media/MediaPlayer;->setOnCompletionListener(Landroid/media/MediaPlayer$OnCompletionListener;)V

    goto :goto_0

    .line 154
    :pswitch_1
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->mediaPlayer:Landroid/media/MediaPlayer;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/media/MediaPlayer;->setLooping(Z)V

    goto :goto_0

    .line 159
    :pswitch_2
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->mediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v0, v1}, Landroid/media/MediaPlayer;->setLooping(Z)V

    .line 160
    invoke-direct {p0}, Limoblife/yogamoment/lite/PlayControl;->setRepeatListPlayBack()V

    .line 161
    const-string v0, "d"

    const-string v1, "PLAYMODE_REPEAT_PLAYLIST"

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0

    .line 165
    :pswitch_3
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->mediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v0, v1}, Landroid/media/MediaPlayer;->setLooping(Z)V

    .line 166
    invoke-direct {p0}, Limoblife/yogamoment/lite/PlayControl;->setDefaultComletionListener()V

    goto :goto_0

    .line 170
    :pswitch_4
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->mediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v0, v1}, Landroid/media/MediaPlayer;->setLooping(Z)V

    .line 171
    invoke-direct {p0}, Limoblife/yogamoment/lite/PlayControl;->setRadomComletionListener()V

    goto :goto_0

    .line 139
    :pswitch_data_0
    .packed-switch -0x5
        :pswitch_4
        :pswitch_3
        :pswitch_2
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method

.method private setRadomComletionListener()V
    .locals 2

    .prologue
    .line 357
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->mediaPlayer:Landroid/media/MediaPlayer;

    new-instance v1, Limoblife/yogamoment/lite/PlayControl$4;

    invoke-direct {v1, p0}, Limoblife/yogamoment/lite/PlayControl$4;-><init>(Limoblife/yogamoment/lite/PlayControl;)V

    invoke-virtual {v0, v1}, Landroid/media/MediaPlayer;->setOnCompletionListener(Landroid/media/MediaPlayer$OnCompletionListener;)V

    .line 363
    return-void
.end method

.method private setRepeatListPlayBack()V
    .locals 2

    .prologue
    .line 229
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->mediaPlayer:Landroid/media/MediaPlayer;

    new-instance v1, Limoblife/yogamoment/lite/PlayControl$2;

    invoke-direct {v1, p0}, Limoblife/yogamoment/lite/PlayControl$2;-><init>(Limoblife/yogamoment/lite/PlayControl;)V

    invoke-virtual {v0, v1}, Landroid/media/MediaPlayer;->setOnCompletionListener(Landroid/media/MediaPlayer$OnCompletionListener;)V

    .line 236
    return-void
.end method

.method private showMusicListWindows()V
    .locals 9

    .prologue
    const/4 v2, 0x0

    const/4 v1, 0x1

    .line 786
    invoke-direct {p0}, Limoblife/yogamoment/lite/PlayControl;->refreshMusicListView()V

    .line 788
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->scrollView:Landroid/widget/ScrollView;

    new-instance v4, Limoblife/yogamoment/lite/PlayControl$11;

    invoke-direct {v4, p0}, Limoblife/yogamoment/lite/PlayControl$11;-><init>(Limoblife/yogamoment/lite/PlayControl;)V

    invoke-virtual {v3, v4}, Landroid/widget/ScrollView;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 796
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->scrollView:Landroid/widget/ScrollView;

    const/4 v4, 0x0

    invoke-virtual {v3, v4}, Landroid/widget/ScrollView;->setVisibility(I)V

    .line 798
    new-instance v0, Landroid/view/animation/TranslateAnimation;

    .line 800
    const/high16 v6, -0x4080

    move v3, v1

    move v4, v2

    move v5, v1

    move v7, v1

    move v8, v2

    .line 798
    invoke-direct/range {v0 .. v8}, Landroid/view/animation/TranslateAnimation;-><init>(IFIFIFIF)V

    .line 803
    .local v0, animation:Landroid/view/animation/TranslateAnimation;
    iget-object v1, p0, Limoblife/yogamoment/lite/PlayControl;->mainActivity:Limoblife/yogamoment/lite/MainActivity;

    .line 804
    const v2, 0x10a0005

    .line 803
    invoke-virtual {v0, v1, v2}, Landroid/view/animation/TranslateAnimation;->setInterpolator(Landroid/content/Context;I)V

    .line 805
    const-wide/16 v1, 0x2bc

    invoke-virtual {v0, v1, v2}, Landroid/view/animation/TranslateAnimation;->setDuration(J)V

    .line 807
    new-instance v1, Limoblife/yogamoment/lite/PlayControl$12;

    invoke-direct {v1, p0}, Limoblife/yogamoment/lite/PlayControl$12;-><init>(Limoblife/yogamoment/lite/PlayControl;)V

    invoke-virtual {v0, v1}, Landroid/view/animation/TranslateAnimation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    .line 825
    iget-object v1, p0, Limoblife/yogamoment/lite/PlayControl;->scrollView:Landroid/widget/ScrollView;

    invoke-virtual {v1, v0}, Landroid/widget/ScrollView;->startAnimation(Landroid/view/animation/Animation;)V

    .line 827
    return-void
.end method

.method private showNofi()V
    .locals 6

    .prologue
    const/4 v3, 0x0

    const-string v5, "count"

    .line 1082
    iget-object v2, p0, Limoblife/yogamoment/lite/PlayControl;->mainActivity:Limoblife/yogamoment/lite/MainActivity;

    invoke-virtual {v2, v3}, Limoblife/yogamoment/lite/MainActivity;->getPreferences(I)Landroid/content/SharedPreferences;

    move-result-object v1

    .line 1084
    .local v1, preferences:Landroid/content/SharedPreferences;
    const-string v2, "count"

    invoke-interface {v1, v5, v3}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v0

    .line 1086
    .local v0, count:I
    const/4 v2, 0x3

    if-ge v0, v2, :cond_0

    .line 1087
    iget-object v2, p0, Limoblife/yogamoment/lite/PlayControl;->mainActivity:Limoblife/yogamoment/lite/MainActivity;

    const v3, 0x7f050036

    const/4 v4, 0x1

    invoke-static {v2, v3, v4}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v2

    .line 1088
    invoke-virtual {v2}, Landroid/widget/Toast;->show()V

    .line 1091
    :cond_0
    add-int/lit8 v0, v0, 0x1

    .line 1092
    invoke-interface {v1}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v2

    const-string v3, "count"

    invoke-interface {v2, v5, v0}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    move-result-object v2

    invoke-interface {v2}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 1094
    return-void
.end method

.method private unLockScreen()V
    .locals 1

    .prologue
    .line 982
    :try_start_0
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->mWakeLock:Landroid/os/PowerManager$WakeLock;

    invoke-virtual {v0}, Landroid/os/PowerManager$WakeLock;->release()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 987
    :goto_0
    return-void

    .line 983
    :catch_0
    move-exception v0

    goto :goto_0
.end method


# virtual methods
.method public closeMusicListWindows()V
    .locals 9

    .prologue
    const/4 v2, 0x0

    const/4 v1, 0x1

    .line 867
    invoke-direct {p0}, Limoblife/yogamoment/lite/PlayControl;->refreshPreferences()V

    .line 869
    new-instance v0, Landroid/view/animation/TranslateAnimation;

    .line 872
    const/high16 v8, -0x4080

    move v3, v1

    move v4, v2

    move v5, v1

    move v6, v2

    move v7, v1

    .line 869
    invoke-direct/range {v0 .. v8}, Landroid/view/animation/TranslateAnimation;-><init>(IFIFIFIF)V

    .line 873
    .local v0, animation:Landroid/view/animation/TranslateAnimation;
    iget-object v1, p0, Limoblife/yogamoment/lite/PlayControl;->mainActivity:Limoblife/yogamoment/lite/MainActivity;

    .line 874
    const v2, 0x10a0005

    .line 873
    invoke-virtual {v0, v1, v2}, Landroid/view/animation/TranslateAnimation;->setInterpolator(Landroid/content/Context;I)V

    .line 875
    const-wide/16 v1, 0x2bc

    invoke-virtual {v0, v1, v2}, Landroid/view/animation/TranslateAnimation;->setDuration(J)V

    .line 878
    new-instance v1, Limoblife/yogamoment/lite/PlayControl$15;

    invoke-direct {v1, p0}, Limoblife/yogamoment/lite/PlayControl$15;-><init>(Limoblife/yogamoment/lite/PlayControl;)V

    invoke-virtual {v0, v1}, Landroid/view/animation/TranslateAnimation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    .line 895
    iget-object v1, p0, Limoblife/yogamoment/lite/PlayControl;->scrollView:Landroid/widget/ScrollView;

    invoke-virtual {v1, v0}, Landroid/widget/ScrollView;->startAnimation(Landroid/view/animation/Animation;)V

    .line 896
    return-void
.end method

.method public closeMusicNameWindows()V
    .locals 2

    .prologue
    .line 1077
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->sppinerBox:Landroid/widget/CheckBox;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/CheckBox;->setChecked(Z)V

    .line 1078
    return-void
.end method

.method public dealTelephony()V
    .locals 3

    .prologue
    .line 990
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->mainActivity:Limoblife/yogamoment/lite/MainActivity;

    .line 991
    const-string v1, "phone"

    invoke-virtual {v0, v1}, Limoblife/yogamoment/lite/MainActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/telephony/TelephonyManager;

    .line 990
    iput-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->telephonyManager:Landroid/telephony/TelephonyManager;

    .line 992
    new-instance v0, Limoblife/yogamoment/lite/PlayControl$16;

    invoke-direct {v0, p0}, Limoblife/yogamoment/lite/PlayControl$16;-><init>(Limoblife/yogamoment/lite/PlayControl;)V

    iput-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->phoneStateListener:Landroid/telephony/PhoneStateListener;

    .line 1056
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->telephonyManager:Landroid/telephony/TelephonyManager;

    iget-object v1, p0, Limoblife/yogamoment/lite/PlayControl;->phoneStateListener:Landroid/telephony/PhoneStateListener;

    .line 1057
    const/16 v2, 0x20

    .line 1056
    invoke-virtual {v0, v1, v2}, Landroid/telephony/TelephonyManager;->listen(Landroid/telephony/PhoneStateListener;I)V

    .line 1058
    return-void
.end method

.method public getCurrentIndex()I
    .locals 1

    .prologue
    .line 1068
    iget v0, p0, Limoblife/yogamoment/lite/PlayControl;->currentIndex:I

    return v0
.end method

.method public isMusicNameViewVisble()Z
    .locals 1

    .prologue
    .line 1073
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->sppinerBox:Landroid/widget/CheckBox;

    invoke-virtual {v0}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v0

    return v0
.end method

.method public nextMusic()V
    .locals 9

    .prologue
    const/4 v7, 0x0

    const/4 v5, 0x1

    const-string v8, "nopreferencesIndex="

    const-string v6, "d"

    .line 546
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->mainActivity:Limoblife/yogamoment/lite/MainActivity;

    invoke-virtual {v3}, Limoblife/yogamoment/lite/MainActivity;->reSetProgress()V

    .line 548
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->allItem:Ljava/util/Vector;

    iget v4, p0, Limoblife/yogamoment/lite/PlayControl;->currentIndex:I

    invoke-virtual {v3, v4}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Limoblife/yogamoment/lite/PlayControl$Item;

    .line 550
    .local v0, item:Limoblife/yogamoment/lite/PlayControl$Item;
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    invoke-virtual {v3}, Ljava/util/Vector;->size()I

    move-result v3

    if-lez v3, :cond_4

    .line 552
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    invoke-virtual {v3, v0}, Ljava/util/Vector;->contains(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_2

    .line 553
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    invoke-virtual {v3, v0}, Ljava/util/Vector;->indexOf(Ljava/lang/Object;)I

    move-result v2

    .line 554
    .local v2, preferencesIndex:I
    add-int/lit8 v2, v2, 0x1

    .line 555
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    invoke-virtual {v3}, Ljava/util/Vector;->size()I

    move-result v3

    rem-int/2addr v2, v3

    .line 556
    const-string v3, "d"

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "preferencesIndex="

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v6, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 558
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->homeplay:Landroid/widget/CheckBox;

    invoke-virtual {v3}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v3

    if-eqz v3, :cond_1

    .line 560
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    invoke-virtual {v3, v2}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Limoblife/yogamoment/lite/PlayControl$Item;

    iget-object v3, v3, Limoblife/yogamoment/lite/PlayControl$Item;->itemPlayCheckBox:Landroid/widget/CheckBox;

    .line 561
    invoke-virtual {v3}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v3

    if-nez v3, :cond_0

    .line 562
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    invoke-virtual {v3, v2}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Limoblife/yogamoment/lite/PlayControl$Item;

    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl$Item;->itemPlayCheckBox:Landroid/widget/CheckBox;

    .line 563
    invoke-virtual {v3, v5}, Landroid/widget/CheckBox;->setChecked(Z)V

    .line 615
    .end local v2           #preferencesIndex:I
    :cond_0
    :goto_0
    return-void

    .line 567
    .restart local v2       #preferencesIndex:I
    .restart local p0
    :cond_1
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->allItem:Ljava/util/Vector;

    iget-object v4, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    .line 568
    invoke-virtual {v4, v2}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v4

    .line 567
    invoke-virtual {v3, v4}, Ljava/util/Vector;->indexOf(Ljava/lang/Object;)I

    move-result v3

    iput v3, p0, Limoblife/yogamoment/lite/PlayControl;->currentIndex:I

    .line 569
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->titleTextView:Landroid/widget/TextView;

    .line 570
    iget-object v4, p0, Limoblife/yogamoment/lite/PlayControl;->allItem:Ljava/util/Vector;

    iget v5, p0, Limoblife/yogamoment/lite/PlayControl;->currentIndex:I

    invoke-virtual {v4, v5}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Limoblife/yogamoment/lite/PlayControl$Item;

    iget-object v4, p0, Limoblife/yogamoment/lite/PlayControl$Item;->titleView:Landroid/widget/TextView;

    .line 571
    invoke-virtual {v4}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v4

    .line 570
    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 576
    .end local v2           #preferencesIndex:I
    .restart local p0
    :cond_2
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->homeplay:Landroid/widget/CheckBox;

    invoke-virtual {v3}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v3

    if-eqz v3, :cond_3

    .line 577
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    invoke-virtual {v3, v7}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Limoblife/yogamoment/lite/PlayControl$Item;

    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl$Item;->itemPlayCheckBox:Landroid/widget/CheckBox;

    invoke-virtual {v3, v5}, Landroid/widget/CheckBox;->setChecked(Z)V

    goto :goto_0

    .line 580
    .restart local p0
    :cond_3
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->allItem:Ljava/util/Vector;

    iget-object v4, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    invoke-virtual {v4, v7}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/util/Vector;->indexOf(Ljava/lang/Object;)I

    move-result v3

    iput v3, p0, Limoblife/yogamoment/lite/PlayControl;->currentIndex:I

    .line 581
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->titleTextView:Landroid/widget/TextView;

    .line 582
    iget-object v4, p0, Limoblife/yogamoment/lite/PlayControl;->allItem:Ljava/util/Vector;

    iget v5, p0, Limoblife/yogamoment/lite/PlayControl;->currentIndex:I

    invoke-virtual {v4, v5}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Limoblife/yogamoment/lite/PlayControl$Item;

    iget-object v4, p0, Limoblife/yogamoment/lite/PlayControl$Item;->titleView:Landroid/widget/TextView;

    .line 583
    invoke-virtual {v4}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v4

    .line 582
    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 591
    .restart local p0
    :cond_4
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->nopreferences:Ljava/util/Vector;

    invoke-virtual {v3, v0}, Ljava/util/Vector;->indexOf(Ljava/lang/Object;)I

    move-result v1

    .line 593
    .local v1, nopreferencesIndex:I
    const-string v3, "d"

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "nopreferencesIndex="

    invoke-direct {v3, v8}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v6, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 595
    add-int/lit8 v1, v1, 0x1

    .line 597
    const-string v3, "d"

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "nopreferencesIndex="

    invoke-direct {v3, v8}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v6, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 599
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->nopreferences:Ljava/util/Vector;

    invoke-virtual {v3}, Ljava/util/Vector;->size()I

    move-result v3

    const/16 v4, 0x8

    sub-int/2addr v3, v4

    rem-int/2addr v1, v3

    .line 601
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->homeplay:Landroid/widget/CheckBox;

    invoke-virtual {v3}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v3

    if-eqz v3, :cond_5

    .line 603
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->nopreferences:Ljava/util/Vector;

    invoke-virtual {v3, v1}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Limoblife/yogamoment/lite/PlayControl$Item;

    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl$Item;->itemPlayCheckBox:Landroid/widget/CheckBox;

    .line 604
    invoke-virtual {v3, v5}, Landroid/widget/CheckBox;->setChecked(Z)V

    goto/16 :goto_0

    .line 607
    .restart local p0
    :cond_5
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->allItem:Ljava/util/Vector;

    iget-object v4, p0, Limoblife/yogamoment/lite/PlayControl;->nopreferences:Ljava/util/Vector;

    .line 608
    invoke-virtual {v4, v1}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v4

    .line 607
    invoke-virtual {v3, v4}, Ljava/util/Vector;->indexOf(Ljava/lang/Object;)I

    move-result v3

    iput v3, p0, Limoblife/yogamoment/lite/PlayControl;->currentIndex:I

    .line 610
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->titleTextView:Landroid/widget/TextView;

    iget-object v4, p0, Limoblife/yogamoment/lite/PlayControl;->allItem:Ljava/util/Vector;

    iget v5, p0, Limoblife/yogamoment/lite/PlayControl;->currentIndex:I

    invoke-virtual {v4, v5}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Limoblife/yogamoment/lite/PlayControl$Item;

    iget-object v4, p0, Limoblife/yogamoment/lite/PlayControl$Item;->titleView:Landroid/widget/TextView;

    .line 611
    invoke-virtual {v4}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v4

    .line 610
    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_0
.end method

.method public prevMusic()V
    .locals 9

    .prologue
    const/4 v8, 0x0

    const/4 v5, 0x1

    const-string v7, "nopreferencesIndex="

    const-string v6, "d"

    .line 619
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->mainActivity:Limoblife/yogamoment/lite/MainActivity;

    invoke-virtual {v3}, Limoblife/yogamoment/lite/MainActivity;->reSetProgress()V

    .line 621
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->allItem:Ljava/util/Vector;

    iget v4, p0, Limoblife/yogamoment/lite/PlayControl;->currentIndex:I

    invoke-virtual {v3, v4}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Limoblife/yogamoment/lite/PlayControl$Item;

    .line 623
    .local v0, item:Limoblife/yogamoment/lite/PlayControl$Item;
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    invoke-virtual {v3}, Ljava/util/Vector;->size()I

    move-result v3

    if-lez v3, :cond_5

    .line 625
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    invoke-virtual {v3, v0}, Ljava/util/Vector;->contains(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_3

    .line 627
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    invoke-virtual {v3, v0}, Ljava/util/Vector;->indexOf(Ljava/lang/Object;)I

    move-result v2

    .line 629
    .local v2, preferencesIndex:I
    add-int/lit8 v2, v2, -0x1

    .line 631
    if-gez v2, :cond_0

    .line 632
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    invoke-virtual {v3}, Ljava/util/Vector;->size()I

    move-result v3

    sub-int v2, v3, v5

    .line 635
    :cond_0
    const-string v3, "d"

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "preferencesIndex="

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v6, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 637
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->homeplay:Landroid/widget/CheckBox;

    invoke-virtual {v3}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v3

    if-eqz v3, :cond_2

    .line 639
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    invoke-virtual {v3, v2}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Limoblife/yogamoment/lite/PlayControl$Item;

    iget-object v3, v3, Limoblife/yogamoment/lite/PlayControl$Item;->itemPlayCheckBox:Landroid/widget/CheckBox;

    .line 640
    invoke-virtual {v3}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v3

    if-nez v3, :cond_1

    .line 641
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    invoke-virtual {v3, v2}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Limoblife/yogamoment/lite/PlayControl$Item;

    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl$Item;->itemPlayCheckBox:Landroid/widget/CheckBox;

    .line 642
    invoke-virtual {v3, v5}, Landroid/widget/CheckBox;->setChecked(Z)V

    .line 699
    .end local v2           #preferencesIndex:I
    :cond_1
    :goto_0
    return-void

    .line 646
    .restart local v2       #preferencesIndex:I
    .restart local p0
    :cond_2
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->allItem:Ljava/util/Vector;

    iget-object v4, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    .line 647
    invoke-virtual {v4, v2}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v4

    .line 646
    invoke-virtual {v3, v4}, Ljava/util/Vector;->indexOf(Ljava/lang/Object;)I

    move-result v3

    iput v3, p0, Limoblife/yogamoment/lite/PlayControl;->currentIndex:I

    .line 648
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->titleTextView:Landroid/widget/TextView;

    .line 649
    iget-object v4, p0, Limoblife/yogamoment/lite/PlayControl;->allItem:Ljava/util/Vector;

    iget v5, p0, Limoblife/yogamoment/lite/PlayControl;->currentIndex:I

    invoke-virtual {v4, v5}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Limoblife/yogamoment/lite/PlayControl$Item;

    iget-object v4, p0, Limoblife/yogamoment/lite/PlayControl$Item;->titleView:Landroid/widget/TextView;

    .line 650
    invoke-virtual {v4}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v4

    .line 649
    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 655
    .end local v2           #preferencesIndex:I
    .restart local p0
    :cond_3
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->homeplay:Landroid/widget/CheckBox;

    invoke-virtual {v3}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v3

    if-eqz v3, :cond_4

    .line 656
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    invoke-virtual {v3, v8}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Limoblife/yogamoment/lite/PlayControl$Item;

    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl$Item;->itemPlayCheckBox:Landroid/widget/CheckBox;

    invoke-virtual {v3, v5}, Landroid/widget/CheckBox;->setChecked(Z)V

    goto :goto_0

    .line 659
    .restart local p0
    :cond_4
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->allItem:Ljava/util/Vector;

    iget-object v4, p0, Limoblife/yogamoment/lite/PlayControl;->preferences:Ljava/util/Vector;

    invoke-virtual {v4, v8}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/util/Vector;->indexOf(Ljava/lang/Object;)I

    move-result v3

    iput v3, p0, Limoblife/yogamoment/lite/PlayControl;->currentIndex:I

    .line 660
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->titleTextView:Landroid/widget/TextView;

    .line 661
    iget-object v4, p0, Limoblife/yogamoment/lite/PlayControl;->allItem:Ljava/util/Vector;

    iget v5, p0, Limoblife/yogamoment/lite/PlayControl;->currentIndex:I

    invoke-virtual {v4, v5}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Limoblife/yogamoment/lite/PlayControl$Item;

    iget-object v4, p0, Limoblife/yogamoment/lite/PlayControl$Item;->titleView:Landroid/widget/TextView;

    .line 662
    invoke-virtual {v4}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v4

    .line 661
    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 670
    .restart local p0
    :cond_5
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->nopreferences:Ljava/util/Vector;

    invoke-virtual {v3, v0}, Ljava/util/Vector;->indexOf(Ljava/lang/Object;)I

    move-result v1

    .line 672
    .local v1, nopreferencesIndex:I
    const-string v3, "d"

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "nopreferencesIndex="

    invoke-direct {v3, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v6, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 674
    add-int/lit8 v1, v1, -0x1

    .line 676
    const-string v3, "d"

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "nopreferencesIndex="

    invoke-direct {v3, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v6, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 678
    if-gez v1, :cond_6

    .line 680
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->nopreferences:Ljava/util/Vector;

    invoke-virtual {v3}, Ljava/util/Vector;->size()I

    move-result v3

    const/16 v4, 0x9

    sub-int v1, v3, v4

    .line 681
    const-string v3, "d"

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "nopreferencesIndex="

    invoke-direct {v3, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v6, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 685
    :cond_6
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->homeplay:Landroid/widget/CheckBox;

    invoke-virtual {v3}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v3

    if-eqz v3, :cond_7

    .line 687
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->nopreferences:Ljava/util/Vector;

    invoke-virtual {v3, v1}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Limoblife/yogamoment/lite/PlayControl$Item;

    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl$Item;->itemPlayCheckBox:Landroid/widget/CheckBox;

    .line 688
    invoke-virtual {v3, v5}, Landroid/widget/CheckBox;->setChecked(Z)V

    goto/16 :goto_0

    .line 691
    .restart local p0
    :cond_7
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->allItem:Ljava/util/Vector;

    iget-object v4, p0, Limoblife/yogamoment/lite/PlayControl;->nopreferences:Ljava/util/Vector;

    .line 692
    invoke-virtual {v4, v1}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v4

    .line 691
    invoke-virtual {v3, v4}, Ljava/util/Vector;->indexOf(Ljava/lang/Object;)I

    move-result v3

    iput v3, p0, Limoblife/yogamoment/lite/PlayControl;->currentIndex:I

    .line 694
    iget-object v3, p0, Limoblife/yogamoment/lite/PlayControl;->titleTextView:Landroid/widget/TextView;

    iget-object v4, p0, Limoblife/yogamoment/lite/PlayControl;->allItem:Ljava/util/Vector;

    iget v5, p0, Limoblife/yogamoment/lite/PlayControl;->currentIndex:I

    invoke-virtual {v4, v5}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Limoblife/yogamoment/lite/PlayControl$Item;

    iget-object v4, p0, Limoblife/yogamoment/lite/PlayControl$Item;->titleView:Landroid/widget/TextView;

    .line 695
    invoke-virtual {v4}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v4

    .line 694
    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_0
.end method

.method public release()V
    .locals 2

    .prologue
    .line 946
    :try_start_0
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->homeplay:Landroid/widget/CheckBox;

    invoke-virtual {v0}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 947
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->homeplay:Landroid/widget/CheckBox;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/CheckBox;->setChecked(Z)V

    .line 949
    :cond_0
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->mediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->reset()V

    .line 950
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->mediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->release()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 956
    :goto_0
    invoke-direct {p0}, Limoblife/yogamoment/lite/PlayControl;->savePreferences()V

    .line 957
    invoke-virtual {p0}, Limoblife/yogamoment/lite/PlayControl;->releaseTelephony()V

    .line 958
    invoke-direct {p0}, Limoblife/yogamoment/lite/PlayControl;->unLockScreen()V

    .line 960
    return-void

    .line 952
    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method public releaseTelephony()V
    .locals 3

    .prologue
    .line 937
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl;->telephonyManager:Landroid/telephony/TelephonyManager;

    iget-object v1, p0, Limoblife/yogamoment/lite/PlayControl;->phoneStateListener:Landroid/telephony/PhoneStateListener;

    .line 938
    const/4 v2, 0x0

    .line 937
    invoke-virtual {v0, v1, v2}, Landroid/telephony/TelephonyManager;->listen(Landroid/telephony/PhoneStateListener;I)V

    .line 940
    return-void
.end method

.method public setCurrentIndex(I)V
    .locals 0
    .parameter "currentIndex"

    .prologue
    .line 1062
    iput p1, p0, Limoblife/yogamoment/lite/PlayControl;->currentIndex:I

    .line 1063
    invoke-virtual {p0}, Limoblife/yogamoment/lite/PlayControl;->dealTelephony()V

    .line 1064
    return-void
.end method

.method public setMusicMode(I)V
    .locals 3
    .parameter "playModeIndex"

    .prologue
    .line 127
    const-string v0, "d"

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "playModeIndex="

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 129
    const/4 v0, 0x5

    new-array v0, v0, [I

    fill-array-data v0, :array_0

    .line 131
    aget v0, v0, p1

    .line 129
    iput v0, p0, Limoblife/yogamoment/lite/PlayControl;->playModeIndex:I

    .line 132
    invoke-direct {p0}, Limoblife/yogamoment/lite/PlayControl;->setMusicMode()V

    .line 134
    return-void

    .line 129
    :array_0
    .array-data 0x4
        0xfft 0xfft 0xfft 0xfft
        0xfet 0xfft 0xfft 0xfft
        0xfdt 0xfft 0xfft 0xfft
        0xfct 0xfft 0xfft 0xfft
        0xfbt 0xfft 0xfft 0xfft
    .end array-data
.end method
